﻿using EMall.Application;
using EMall.Query;
using Microsoft.AspNetCore.Identity;

namespace EMall.IdentityService.Roles
{
    public interface IRoleAppService : IApplicationService
    {
        Task CreateAsync(CreateRoleDto input);
        Task UpdateAsync(UpdateRoleDto input);
        Task DeleteAsync(DeleteRoleDto input);
        Task<RoleDto> GetAsync(int id);
        Task<IEnumerable<RoleListDto>> GetListAsync(GetRoleListQueryDto input);
        Task<IPagedList<RoleListDto>> GetPagedListAsync(GetRoleListPagingAndSortingQueryDto input);
    }
}
